<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录</title>
    
    <link rel="stylesheet" href="../statics/css/bootstrap.min.css">
    <style>
        .card{
            margin-top: 10rem;
        }
        .form-control{
            width: 25rem;
            margin-left: 2.5px;
        }
        .form-group{
            margin-left: 1rem;
        }
        .btn-primary{
            margin-bottom: 0.5rem;
            margin-left: 5rem;
            width: 6rem;
        }
    </style>
</head>

<body>

    <div class="container">
        <div class="row">
            <div class="col align-self-start">
            </div>
            <div class="col align-self-center">
                <div class="card" style="width: 28rem;">
                    <form>
                        <div class="form-group">
                            <label for="username">用户名:</label>
                            <input type="email" class="form-control" id="username"
                                aria-describedby="emailHelp">
                            <small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone
                                else.</small>
                        </div>
                        <div class="form-group">
                            <label for="password">密码:</label>
                            <input type="password" class="form-control" id="password">
                        </div>
                        <div class="form-group form-check">
                            <input type="checkbox" class="form-check-input" id="exampleCheck1">
                            <label class="form-check-label" for="exampleCheck1">记住我</label>
                        </div>
                        <button type="submit" class="btn btn-primary">登录</button>
                        <button type="button" class="btn btn-primary" onclick="toRegister()">注册</button>
                    </form>
                </div>
            </div>
            <div class="col align-self-end">
            </div>
        </div>
    </div>

<script src="../statics/js/query-3.6.0.min.js"></script>
<script src="../statics/js/bootstrap.min.js"></script>
</body>
<script>
    function toRegister(){
        window.location.href = '/register'
    }
</script>

</html>